<form action="lima.php" method="post">


<?php
	

	include("../inc/joomlaInt_admin.php");
	include("../inc/inc_configuration.php");
	
	$q="SELECT gid FROM $tbl_users WHERE id=$jUser";
					$qe=mysql_query($q);
					$qeo=mysql_fetch_object($qe);
					
					$gid=$qeo->gid;
					
					if ($gid!=$admingroup)
					{
						echo "Du bist kein Admin!";
						break;
					}
					
	$liga=$_SESSION["liga"];
	$matchday=$_POST["matchday"];
	
	
	$lq = "UPDATE $tbl_matches set free=1 WHERE leagueId=$liga AND matchday<=$matchday AND free<>3";
	$lqe = mysql_query($lq);
	
	echo "$lqe, erfolgreich.";
	
?>

<input type="submit" value="OK">
</form>